package com.quwan.common;

import lombok.AllArgsConstructor;

import lombok.Getter;

/**
 * @author quan
 * @date 2021-10-30 11:52
 */
@Getter
@AllArgsConstructor
public enum WeekTips {

    MONDAY(1, "周一"),
    TUESDAY(2, "周二"),
    WEDNESDAY(3, "周三"),
    THURSDAY(4, "周四"),
    FRIDAY(5, "周五"),
    SATURDAY(6, "周六"),
    SUNDAY(7, "周日");
    Integer num;
    String tips;

    public static String getStr(Integer num) {
        switch (num) {
            case 1:
                return MONDAY.tips;
            case 2:
                return TUESDAY.tips;
            case 3:
                return WEDNESDAY.tips;
            case 4:
                return THURSDAY.tips;
            case 5:
                return FRIDAY.tips;
            case 6:
                return SATURDAY.tips;
            case 7:
                return SUNDAY.tips;
             default:
                 return "undefined";

        }
    }
}
